package xyz.zdsoft.course_manage_module.mapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

@Mapper
public interface InsertCourseGchMapper {
    //查询该课程是否存在
    Integer SelHaveCourse(String courseName);
    //如果课程不存在就新增课程
    void InsertCourse(String courseName);
    //获取课程id
    Integer SelCourseId(String courseName);
    //通过教室查询当日上课日期
    List<HashMap<String,Object>> SelDateByClassRoom(String classRome);
    //查询实训老师是否是在业状态
    String SelTrainTeacher(Long teacherId);
    //查询实训老师是否存在
    Integer SelHaveTeacher(Long teacherId);
    //新增课程安排
    Integer InsertCourseOn(HashMap<String,Object> map);
    //查询新增的课程安排id
    Integer SelCourseOnIdBy(HashMap<String,Object> map);
    //新增课程安排与实训老师的对应关系
    void InsertCourseAndTrainTeacher(@Param("courseOnId") Integer courseOnId,@Param("trainTeacherId") Long trainTeacherId);
}
